package pack2;

public class PLS implements Comparable<PLS>{
	
	public String h;
	public int imsi;
	public long cellac;
	public long time;
	public double lat;
	public double lon;
	public double radius;
	
	public PLS(String hash, int im, long cell, long t, double la, double lo, double r){
		this.h = hash;
		this.imsi = im;
		this.cellac = cell;
		this.time = t;
		this.lat = la;
		this.lon = lo;
		this.radius = r;
	}
	
	
//	public int compareTo(PLS pls){
//		return h.compareTo(pls.h);
//	}
	public int compareTo(PLS p){
		
		if (time > p.time)
			return 1; 
	    if (time < p.time) 
	    	return -1;
	    return 0;
	}
	public String toString(){
		return h+","+imsi+","+cellac+","+time+","+lat+","+lon+","+radius;
	}

}
